package com.tianjipms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("sys_feedback")
public class Feedback {
    private static final long serialVersionUID = 1L;
    /**
     * 反馈编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 建议编号
     */
    private Long opinionId;
    /**
     * 处理人员
     */
    private Long handleId;
    /**
     * 处理时间
     */
    @TableField(value = "handled_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handledTime;
    /**
     * 反馈信息
     */
    private String message;
    /**
     * 反馈结果(0-已解决,1-未解决)
     */
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOpinionId() {
        return opinionId;
    }

    public void setOpinionId(Long opinionId) {
        this.opinionId = opinionId;
    }

    public Long getHandleId() {
        return handleId;
    }

    public void setHandleId(Long handleId) {
        this.handleId = handleId;
    }

    public Date getHandledTime() {
        return handledTime;
    }

    public void setHandledTime(Date handledTime) {
        this.handledTime = handledTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
